POV-Ray : Newsgroups : povray.general : Endogenic height field : Re: Endogenic height field Server Time
31 Jul 2024 16:31:38 EDT (-0400)
  Re: Endogenic height field  
From: Warp
Date: 3 Dec 2006 15:03:24
Message: <45732d8c@news.povray.org>
Nicolas George <nicolas$george@salle-s.org> wrote:
> I often felt the need of such a purely random height field, to serve as a
> natural floor for a scene. I find the need for an external file somewhat
> annoying: the file must either be carried around with the scene, or
> re-generated, it is cumbersome.

> I just found that patterns and pigments could be programatically queried
> through the use of user-defined functions. Something like:

> #declare height = function { pattern { wrinkles } }

  Read the documentation more carefully. You can create a height_field
from such a function without the need for an external image file.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.